<section class="comment-form">
    <h2 class="section-title">{if $user.ID>0}{$user.StaticName}{/if}发表评论:</h2>
    <form role="form" id="frmSumbit" target="_self" method="post" action="{$article.CommentPostUrl}">
        <input type="hidden" name="inpId" id="inpId" value="{$article.ID}" />
        <input type="hidden" name="inpRevID" id="inpRevID" value="0" />
        {if $user.ID>0}
        <input type="hidden" name="inpName" id="inpName" value="{$user.Name}" />
        <input type="hidden" name="inpEmail" id="inpEmail" value="{$user.Email}" />
        <input type="hidden" name="inpHomePage" id="inpHomePage" value="{$user.HomePage}" />
        {else}
        <div class="form-group">
            <label for="inputName">名称</label>
            <input type="text" class="form-control" name="inpName" id="inpName" class="text" value="{$user.Name}" size="28" tabindex="1" />
        </div>
        <div class="form-group">
            <label for="inputEmail">邮箱</label>
            <input type="text" name="inpEmail" class="form-control" id="inpEmail" class="text" value="{$user.Email}" size="28" tabindex="2" />
        </div>
        <div class="form-group">
            <label for="inputEmail">网址</label>
            <input type="text" name="inpHomePage" class="form-control" id="inpHomePage" class="text" value="{$user.HomePage}" size="28" tabindex="3" />
        </div>
        {/if}

        <div class="form-group">
            <label for="inputMessage">正文(*)</label>
            <textarea name="txaArticle" class="form-control" id="txaArticle" rows="6"></textarea>
            <button type="submit" class="btn btn-ar btn-primary" onclick="return zbp.comment.post()">Submit</button>
        </div>
        
    </form>
</section> <!-- comment-form -->